<title>商品详情</title>
<link rel="stylesheet" href="../addons/jy_aligroup/custom/templates/mobile/css/style.css" />
<div class='fui-page creditshop-detail-page'>
   <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">拼团操作</div>
		<div class="fui-header-right"></div>
	</div>

	<div class='fui-content navbar'>
		<div class="lynn_opengroups_head fui-list">
			<a href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+pagedata.goods.id)" class="lynn_index_list_a fui-list-media">
				<img src="{{tomedia(pagedata.goods.image)}}" alt="{{pagedata.goods.title}}" onerror="this.src='../core/resource/images/nopic.jpg'">
			</a>
			<div class="fui-list-inner lynn_opengroups_head_goods">
				<h2>{{pagedata.goods.title}}</h2>
				<div class="lynn_opengroups_head_goods_info">
					<span class="fl">
					{{pagedata.group.groupnum}}人团：¥ <strong>{{pagedata.goods.groupsprice}}</strong>/{{ifelse(pagedata.goods.units,pagedata.goods.goodsnum+pagedata.goods.units,'1件')}}
					</span>
					<span class="fr">
						已有<b>{{pagedata.group.fightnum || 0}}</b>人参团
					</span>
					<div style="clear:both;"></div>
				</div>
			</div>
		</div>
		<div class="lynn_opengroups_invitation row" style="margin:0">
			<p>支付开团并邀请<b>{{pagedata.group.groupnum-1}}</b>人参加，人数不足自动退款，详见下方拼团玩法</p>
			<a href="javascript:;" ng-click="access_json('jy_aligroup/fightGroups//id='+pagedata.goods.id+'&groupid='+pagedata.group.id)" class="lynn_fightgroups_btn" data-nocache="true">我要参团</a>
			<a href="javascript:;" ng-click="access_json('jy_aligroup/confirm/confirm/goodsid='+pagedata.goods.id+'&groupid='+pagedata.group.id+'&type=groups&heads=1')" class="lynn_opengroups_btn btn-groups">我要开团</a>
		</div>
		<div class="step">
			<div class="step_hd">
				<i class="left"></i>拼团玩法<a class="step_more" href="javascript:;" ng-click="access_json('jy_aligroup/rules/')">查看详情></a>
			</div>
			<div id="footItem" class="step_list">
				<div class="step_item ">
					<div class="step_num">1</div>
					<div class="step_detail">
						<p class="step_tit">选择
							<br>心仪商品</p>
					</div>
				</div>
				<div class="step_item ">
					<div class="step_num">2</div>
					<div class="step_detail">
						<p class="step_tit">支付开团
							<br>或参团</p>
					</div>
				</div>
				<div class="step_item" id="step_3">
					<div class="step_num">3</div>
					<div class="step_detail">
						<p class="step_tit" >邀请好友
							<br>参团支付</p>
					</div>
				</div>
				<div class="step_item" id="step_4">
					<div class="step_num">4</div>
					<div class="step_detail">
						<p class="step_tit">达到人数
							<br>团购成功</p>
					</div>
				</div>
			</div>
		</div>
		<div class="lynn_more_groups">
			<div class="lynn_more_groups_head">
				<p>
					<i></i>
					<span>更多好团</span>
				</p>
			</div>
			<ul class="lynn_more_groups_list row">
				<li ng-repeat="item in pagedata.teams">
					<a href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+item.id)" class="lynn_more_groups_list_a">
						<img src="{{tomedia(item.thumb)}}" alt="{{item.title}}">
					</a>
					<h3>{{item.title}}</h3>
					<p  class="lynn_more_groups_list_p row">
						<span class="fl">¥ <b>{{item.groupsprice}}</b><del>¥{{item.price}}</del></span>
						<span class="fr">{{item.fightnum}}人参团</span>
					</p>
				</li>
	
			</ul>
		</div>
	</div>
</div>